﻿using System.Collections.Generic;
using OpiConsole;

namespace Example
{
    public class CVar_Language : CVar
    {
        public CVar_Language() : base("language", "English", CVarType.STRING, UsageLevel.NORMAL, true) { }

        public override bool Invoke(List<string> args)
        {
            if (args.Count < 1 || args.Count > 1)
                return false;

            //Set the value of the CVar
            return setValue(args);
        }
    }

}
